package com.yswy.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yswy.domain.entity.PackageManage;
import com.yswy.domain.entity.PackageManageLog;
import com.yswy.domain.entity.PackageVersion;
import com.yswy.domain.vo.dto.BaseFilter;
import com.yswy.domain.vo.gld.list.PackageManageLogList;
import com.yswy.domain.vo.gld.search.PackageManageSearch;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface PackageManageLogMapper extends BaseMapper<PackageManageLog> {

    Page<PackageManageLogList> pagePackageManageLog(@Param("packageManageId") Long packageManageId,
                                                 Page<BaseFilter> page);
    //获取打包记录未同步到的新版本
    List<PackageVersion> getNewPackageVersionByManageLog(@Param("projectId") Long projectId);

    //获取最新的版本
    PackageManageLogList getLatestPackageVersion(@Param("projectId") Long projectId,
                                      @Param("channel") String channel  );

}
